/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MYData.Entity.SystemModels;

namespace MYData.Entity.DomainModels
{
    [Entity(TableCnName = "经费模板",TableName = "Tb_Project_Fundtemplate")]
    public partial class Tb_Project_Fundtemplate:BaseEntity
    {
        /// <summary>
        ///经费模板主表Id
        /// </summary>
        [Key]
        [Display(Name = "经费模板主表Id")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string fundtemplateId { get; set; } = new Snowflake.Core.IdWorker(1, 1).NextId().ToString();

       /// <summary>
       ///经费模板名称
       /// </summary>
       [Display(Name ="经费模板名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string fundtemplateName { get; set; }

       /// <summary>
       ///经费模板状态 0代表已启用1为未启用
       /// </summary>
       [Display(Name ="经费模板状态 0代表已启用1为未启用")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int fundtemplateState { get; set; }

       /// <summary>
       ///经费模板预算转换率
       /// </summary>
       [Display(Name ="经费模板预算转换率")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int fundtemplateFunsRatio { get; set; }

       /// <summary>
       ///经费模板预算转换率单位
       /// </summary>
       [Display(Name ="经费模板预算转换率单位")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string fundtemplateFunsRatioName { get; set; }

       /// <summary>
       ///是否包含配套经费 
       /// </summary>
       [Display(Name ="是否包含配套经费 ")]
       [Column(TypeName="bool")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public bool isSupportingFunds { get; set; }

        /// <summary>
        ///创建人
        /// </summary>
        [Display(Name = "创建人")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string creator { get; set; } = "超级管理员";

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime createDate { get; set; }=DateTime.Now;

       /// <summary>
       ///最后修改人
       /// </summary>
       [Display(Name ="最后修改人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string modifier { get; set; }

       /// <summary>
       ///最后修改时间
       /// </summary>
       [Display(Name ="最后修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? modifierTime { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       public string remark { get; set; }

       /// <summary>
       ///是否删除(0代表未删除1代表已删除)
       /// </summary>
       [Display(Name ="是否删除(0代表未删除1代表已删除)")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int isDelete { get; set; }

       
    }
}